﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Gantt
{
    public partial class Assignment : General
    {
        public Assignment() 
        {
            this.CreateOn = DateTime.Now;
        }

        public int ProjectId { get; set; }

        public override int Id { get; set; }

        public string CreateBy { get; set; }
        public DateTime CreateOn { get; set; }

        public int TaskIdRaw { get; set; }
        public int ResourceIdRaw { get; set; }
        public int Units { get; set; }

        [ForeignKey("ResourceIdRaw")]
        public virtual Resource Resource { get; set; }
        [ForeignKey("TaskIdRaw")]
        public virtual TaskInfo Task { get; set; }
    }
}
